<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"  xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<meta charset="utf-8">
<head th:include="mall/advert/include::header"></head>
<body class="gray-bg">
	<div class="wrapper wrapper-content animated fadeInRight">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-title">
						<h5>扣款</h5>
					</div>
					<div class="ibox-content">
						<form class="form-horizontal m-t" id="signupForm">
							<input type="hidden" id="mid" name="mid" th:value="${balance.mid}">
							<div class="form-group">
								<label class="col-sm-3 control-label">头像:</label>
								<div class="col-sm-8">
									<img th:src="${balance.avatar}" style="max-width: 100px">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">姓名:</label>
								<div class="col-sm-8">
									<input id="realname" name="realname" th:value="${balance.realname}"  class="form-control" type="text" readonly>
								</div>
							</div>

							<div class="form-group">
								<label class="col-sm-3 control-label">性别:</label>
								<div class="col-sm-8">
									<input id="gender" name="gender" th:value="${balance.gender} == '1'? '男':'女'"  class="form-control" type="text" readonly>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">手机号码:</label>
								<div class="col-sm-8">
									<input id="mobile" name="mobile" th:value="${balance.mobile}" class="form-control" type="text" readonly>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">邮箱:</label>
								<div class="col-sm-8">
									<input id="email" name="email" th:value="${balance.email}" class="form-control" type="text" readonly>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">所在地址:</label>
								<div class="col-sm-8">
									<input id="address" name="address" th:value="${balance.address}" class="form-control" type="text" readonly>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">代理等级:</label>
								<div class="col-sm-8">
									<input id="role" name="role" th:value="${balance.isteam} == '3'?'门店':'会员'" class="form-control" type="text" readonly>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">用户余额:</label>
								<div class="col-sm-8">
									<input id="balance" name="balance" th:value="${balance.balance}" class="form-control" type="number" readonly>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">扣款金额:</label>
								<div class="col-sm-8">
									<input id="money" name="money"  class="form-control" type="number" min="0">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">扣款备注:</label>
								<div class="col-sm-8">
									<input id="remark" name="remark" class="form-control" type="text">
								</div>
							</div>


							<div class="form-group text-center">
								<div class="col-sm-8 col-sm-offset-2">
									<button type="submit" id="saveBtn" class="btn btn-primary"><i class="fa fa-check"></i>提交</button>
									<div class="btn btn-danger" onclick="closeDow()"><i class="fa fa-remove"></i> 关闭</div>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>
	</div>
	<div th:include="mall/advert/include::footer"></div>
	<script type="text/javascript" src="/js/appjs/finance/balance/deduct.js">
	</script>
	<script type="text/javascript">
		function closeDow() {
			var index = parent.layer.getFrameIndex(window.name); // 获取窗口索引
			parent.layer.close(index);
		}
	</script>
</body>
</html>
